import http from "../plugins/http";
import * as utils from "../utils";

const api = {};

api.oauthToken = function (params) {
  return http.getAnonymous({
    url: "/api/scene3/token",
    params: params
  });
};

api.onlinePay = function (params) {
  return http.post({
    url: "/api/scene3/pay",
    params: params
  });
};

api.tradeState = function (params) {
  return http.get({
    url: "/api/scene3/pay/state",
    params: params
  });
};

export default api;
